package com.usian.feign;

import com.usian.pojo.SearchItem;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(value = "usian-search-service")
public interface SearchItemFeign {

    @RequestMapping("importAll")
    boolean importAll();

    @RequestMapping("list")
    List<SearchItem> searchByQ(@RequestParam String q,@RequestParam Integer page,@RequestParam Integer pageSize);
}
